package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityOrderReplaceItem;
import com.ocom.common.request.payconfig.GetOrderReplaceListRequest;
import com.ocom.common.request.payconfig.PauseOrderReplaceRequest;
import com.ocom.common.request.payconfig.StartOrderReplaceRequest;
import com.ocom.common.resp.Result;
import org.springframework.web.bind.annotation.RequestBody;

public interface OrderReplaceItemService extends IService<EntityOrderReplaceItem> {
    Result addOrderReplace(Long companyId, EntityOrderReplaceItem orderReplaceItem);
    Result editOrderReplace(Long companyId,EntityOrderReplaceItem orderReplaceItem);

    Result getOrderReplaceList(Long companyId, GetOrderReplaceListRequest request);

    EntityOrderReplaceItem getById(Long companyId,Integer id);

    Result  startOrderReplace(Long companyId,StartOrderReplaceRequest request);

    boolean pauseOrderReplace(Long companyId, PauseOrderReplaceRequest request);
}
